From f70473e487d45b9f5a9db77cef8f737b679f253a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 2 Mar 2009 11:04:43 +0000 Subject: [PATCH] xmexample: portability fix Signed-off-by: Christoph Egger --- tools/examples/xmexample.hvm | 6 +++--- tools/examples/xmexample.vti | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/examples/xmexample.hvm b/tools/examples/xmexample.hvm index b4d849f72f..0977ef4221 100644 --- a/tools/examples/xmexample.hvm +++ b/tools/examples/xmexample.hvm @@ -7,11 +7,11 @@ #============================================================================ import os, re + +arch_libdir = 'lib' arch = os.uname()[4] -if re.search('64', arch): +if os.uname()[0] == 'Linux' and re.search('64', arch): arch_libdir = 'lib64' -else: - arch_libdir = 'lib' #---------------------------------------------------------------------------- # Kernel image file. diff --git a/tools/examples/xmexample.vti b/tools/examples/xmexample.vti index 3169e52d03..19070f2a98 100644 --- a/tools/examples/xmexample.vti +++ b/tools/examples/xmexample.vti @@ -7,8 +7,10 @@ #============================================================================ import os, re -arch = os.uname()[4] arch_libdir = 'lib' +arch = os.uname()[4] +if os.uname()[0] == 'Linux' and re.search('64', arch): + arch_libdir = 'lib64' #---------------------------------------------------------------------------- # Kernel image file. -- 2.30.2